package com.gc;

/**
 * Created by Lxk on 2019/2/24.
 */
public class MinorGCTest {

    private static final int _2MB =2*1024*1024;

    public static void main(String[] args){
        byte[] allocation,allocation2,allocation3,allocation4;
        byte[] allocate;
        allocation = new byte[_2MB/8];
        allocation2 = new byte[_2MB/8];
        allocation3 = new byte[2*_2MB];
        allocation4 = new byte[2*_2MB];
        allocation4 = null;
        System.gc();
        allocation4 = new byte[2*_2MB];
//        allocate = new byte[_2MB];
    }

}
